﻿<link href="@Url.Content("~/content/activitie_detail.css")" rel="stylesheet" type="text/css"/>

@model IEnumerable<PessMvc.Models.CountyAdminModel> 

@{
    ViewBag.Title = "CountyAdmins";
}

<div id="m-title">
    <h2>区县管理员</h2>
    <div id="m-op">
        @Html.ActionLink("新建管理员", "CountyAdminRegister", "Account", new {@class="f-btn-long" })&#8195;@Html.ActionLink("返回", "SystemSettings", "Home")
    </div>
</div>

<div id="userList">
@{
    var grid = new WebGrid(Model);
}
@grid.GetHtml(columns:
    grid.Columns(
    grid.Column("UserName", header: "区县管理员"),
        grid.Column("EMail", header: "电子邮件"),
        grid.Column("CountyName", header: "区县"),
        grid.Column(format: (item) => Html.ActionLink("编辑", "EditCountyAdmin", new { UserName=item.UserName, @class="u-btn-a"}),style:"thAction")
    )
)
</div>

<script language="javascript">
    document.getElementsByTagName("table")[0].className = "oddTable";
</script>
